home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update36.zoo / gdbm-1.7.1 / autoconf.hst < prev    next >
Encoding:
Text File  |  1993-11-20  |  3.0 KB  |  114 lines

  1. /* hand customized autoconf.h for the atariST
  2.  *     sleezed by ++jrb    bammi@cadence.com
  3.  */
  4.  
  5. /* autoconf.h.  Generated automatically by configure.  */
  6. /* autoconf.h.in.  Generated automatically from configure.in by autoheader.  */
  7.  
  8. /* Define if using alloca.c.  */
  9. /* #undef C_ALLOCA */
  10.  
  11. /* Define to empty if the keyword does not work.  */
  12. /* #undef const */
  13.  
  14. /* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
  15.    This function is required for alloca.c support on those systems.  */
  16. /* #undef CRAY_STACKSEG_END */
  17.  
  18. /* Define if you have alloca.h and it should be used (not Ultrix).  */
  19. #define HAVE_ALLOCA_H 1
  20.  
  21. /* Define if your struct stat has st_blksize.  */
  22. #define HAVE_ST_BLKSIZE 1
  23.  
  24. /* Define if int is 16 bits instead of 32.  */
  25. #ifdef __MSHORT__
  26. #  define INT_16_BITS
  27. #endif
  28.  
  29. /* Define if long int is 64 bits.  */
  30. /* #undef LONG_64_BITS */
  31.  
  32. /* Define to `long' if <sys/types.h> doesn't define.  */
  33. /* #undef off_t */
  34.  
  35. /* If using the C implementation of alloca, define if you know the
  36.    direction of stack growth for your system; otherwise it will be
  37.    automatically deduced at run-time.
  38.     STACK_DIRECTION > 0 => grows toward higher addresses
  39.     STACK_DIRECTION < 0 => grows toward lower addresses
  40.     STACK_DIRECTION = 0 => direction of growth unknown
  41.  */
  42. /* #undef STACK_DIRECTION */
  43.  
  44. /* Define if you have bcopy.  */
  45. #define HAVE_BCOPY 1
  46.  
  47. /* Define if you have flock.  */
  48. #ifdef __MINT__
  49. #define HAVE_FLOCK 1
  50.  
  51. /* Define if you have fsync.  */
  52. #define HAVE_FSYNC 1
  53.  
  54. /* Define if you have ftruncate.  */
  55. #define HAVE_FTRUNCATE 1
  56.  
  57. #else /* !__MINT__ but TOS */
  58.  
  59. #define UNLOCK_FILE(dbf) (0)
  60. #define READLOCK_FILE(dbf) { lock_val = 0; }
  61. #define WRITELOCK_FILE(dbf) { lock_val = 0; }
  62.  
  63. #define fsync(f) (0)
  64.  
  65. /* atariST-TOS does not have a truncate call, how primitive.
  66.    for this application, (truncate to zero length) the following 
  67.    should suffice 
  68. */
  69. #define TRUNCATE(dbf) \
  70.  {                              \
  71.     (void)close(dbf->desc);                  \
  72.     (void)remove(dbf->name);                   \
  73.     dbf->desc = open (dbf->name, O_RDWR|O_CREAT, mode);   \
  74.     if(dbf->desc <  0)                       \
  75.     {                              \
  76.     free(dbf->name);                  \
  77.     free(dbf);                      \
  78.         gdbm_errno = GDBM_FILE_OPEN_ERROR;          \
  79.         return NULL;                      \
  80.     }                              \
  81.  }
  82.  
  83. #endif /* __MINT__ */
  84.  
  85. /* Define if you have rename.  */
  86. #define HAVE_RENAME 1
  87.  
  88. /* Define if you have the <fcntl.h> header file.  */
  89. #define HAVE_FCNTL_H 1
  90.  
  91. /* Define if you have the <stdlib.h> header file.  */
  92. #define HAVE_STDLIB_H 1
  93.  
  94. /* Define if you have the <string.h> header file.  */
  95. #define HAVE_STRING_H 1
  96.  
  97. /* Define if you have the <sys/file.h> header file.  */
  98. #define HAVE_SYS_FILE_H 1
  99.  
  100. /* Define if you have the <sys/types.h> header file.  */
  101. #define HAVE_SYS_TYPES_H 1
  102.  
  103. /* Define if you have the <unistd.h> header file.  */
  104. #define HAVE_UNISTD_H 1
  105.  
  106. /* Define if you have the c library (-lc).  */
  107. #define HAVE_LIBC 1
  108.  
  109. /* Define if you have the dbm library (-ldbm).  */
  110. /* #define HAVE_LIBDBM 1 */
  111.  
  112. /* Define if you have the ndbm library (-lndbm).  */
  113. /* #undef HAVE_LIBNDBM */
  114.